import { Window_Base } from "@/windows/Window_Base.js";
import { TextManager } from "@/managers/TextManager.js";

export class Window_Gold extends Window_Base {
    constructor(width,height) {
        super(width,height);
        this.refresh();
    }

    refresh() {
        let width = this.width - this.textPadding() * 2;
        this.contents.clear();
        this.drawCurrencyValue(this.value(), this.currencyUnit(), 0, 0, width);
    }

    value() {
        return $gameParty.gold();
    }

    currencyUnit() {
        return TextManager.currencyUnit;
    }
}